package com.zhongkai.jedis;

public interface JedisClient {

	String set(String key, String value) throws Exception;
	String get(String key) throws Exception;
	Boolean exists(String key) throws Exception;
	Long expire(String key, int seconds) throws Exception;
	Long ttl(String key);
	Long incr(String key);
	Long hset(String key, String field, String value);
	String hget(String key, String field);
	Long hdel(String key, String... field);

	Long delete(String key) throws Exception;

	void setkeyexp(String key, String value,int exp) throws Exception;
}
